package com.zhuiYun.project.api.trend.mapper;

import com.zhuiYun.project.api.trend.entity.TrendComment;
import com.zhuiYun.project.api.trend.entity.Trends;
import com.zhuiYun.project.common.mapper.BaseMapper;
import org.apache.ibatis.annotations.*;

import java.util.List;

/**
 * @ClassName TrendsServiceImpl
 * @Description TODO 动态mapper（uniapp动态）
 * @Author gpd
 * @Date 2023-04-07 下午 04:44
 **/
@Mapper
public interface TrendsMapper extends BaseMapper<Trends> {



    /**
     * @Author gpd
     * @Description 点赞时更改点赞数 （uniapp动态）
     * @Date 2023-04-12
     * @param tId
     */
    @Update("update trend_content set likes = likes + 1 where id=#{tId}")
    void updateThumbsUpState(Integer tId);
}
